package com.hqx.oop.constructor;

public class StudentTest2 {
    public static void main(String[] args) {
        Students student = new Students("广西科技大学");
        System.out.println(student);
        System.out.println(student.getInfo());
    }
}
class Students extends Person {
    private String school;

    public Students(String name,int age, String s) {
        super(name,age);
        school = s;
    }

    public Students(String name,String s) {
        super(name);
        school = s;
    }

    public Students(String s) {
        super();
        school = s;
    }

    @Override
    public String toString() {
        return "Students{" +
                "school='" + school + '\'' +
                '}';
    }
}
